﻿
using UnityEngine;
using ShapeMesh;

public class GameRoot : MonoBehaviour 
{
    private void Start()
    {
        var shape = new SphereShape(5.0f);
        var tempGo = new GameObject("Temp Go");
        tempGo.AddComponent<MeshFilter>().mesh = shape.ShapeMesh;
        tempGo.AddComponent<MeshRenderer>().material = Resources.Load<Material>("Material");
        tempGo.AddComponent<MeshDisplay>();
    }
}